package com.zdb.defaultFunctiion.constant;

public enum Status {
    SUCCESS(200,"OK"),
    NOT_FOUND(404,"NOT FOUND"),
    INTERNAL_SERVER_ERROR(500,"INTERNAL SERVER ERROR");

    private int code;
    private String message;
    Status(int code,String message){
        this.code = code;
        this.message = message;
    }
    public int getCode(){
        return code;
    }
    public String getMessage(){
        return message;
    }
}
